import { createWebHistory, createRouter } from 'vue-router'
import IndexView from '../views/IndexView.vue'
import HelloWorld from '../components/HelloWorld.vue'
const routes = [
    {
      path: '/',
      name: 'home',
      redirect: '/overview',
      component: IndexView,
      children: [
        {
          path: 'overview',
          component:()=>import('../views/OverView.vue'),
        },
        {
          path: 'hello',
          component: HelloWorld,
        },
      ],
    },
    {
      path: '/hellox',
      component: HelloWorld,
    },
  ]
const router = createRouter({
  history: createWebHistory(),
  routes,
})
export default router